package com.sxp.bean;

import java.sql.Timestamp;

/**
 * @author 宋晓盼
 * @since 2019/6/5 10:06
 */
public class Cart {
    private Integer id;
    private Timestamp createTime;
    private Timestamp updateTime;
    private Integer bookId;
    private Integer amount;
    private Integer userId;
    private String bookName;
    private Double bookPrice;

    public Cart() {
    }

    public Cart(Integer bookId, Integer userId, String bookName, Double bookPrice) {
        this.bookId = bookId;
        this.userId = userId;
        this.bookName = bookName;
        this.bookPrice = bookPrice;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public Double getBookPrice() {
        return bookPrice;
    }

    public void setBookPrice(Double bookPrice) {
        this.bookPrice = bookPrice;
    }
}
